Přeskočit na hlavní obsah

Module: components/TableViewOptionsToolbarItem

Functions​

default​

▸ default<TData>(root0): Element

Renders a dropdown with view options for the table.

Type parameters​

Name
TData

Parameters​

NameTypeDescription
root0ObjectProps for the component.
root0.localStorageKeystringKey under which to store the visibility state in local storage. Keys in camel case are recommended.
root0.style?CSSPropertiesStyle for the dropdown container.
root0.tableTable<TData>Table for which to render options. It is expected that each column has a meta property viewOptionsLabel of type string that is displayed by this component.

Returns​

Element

Throws

If any column in the table does not have a label.

Defined in​

src/web-app/src/components/TableViewOptionsToolbarItem.tsx:19